TestLogger

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
open override var level: ILogger.Level

Functions

Link copied to clipboard
fun d(tag: String, message: String, throwable: Throwable? = null)

Send a Level.DEBUG log message and log the exception.

Link copied to clipboard
fun e(tag: String, message: String, throwable: Throwable? = null)

Send a Level.ERROR log message and log the exception.

Link copied to clipboard
fun i(tag: String, message: String, throwable: Throwable? = null)

Send a Level.INFO log message and log the exception.

Link copied to clipboard
@VisibleForTesting(otherwise = 4)
open fun isLoggable(level: ILogger.Level): Boolean
Link copied to clipboard
open override fun log(level: ILogger.Level, tag: String, message: String, throwable: Throwable?)

Write a log message to its destination.

Link copied to clipboard
fun v(tag: String, message: String, throwable: Throwable? = null)

Send a Level.VERBOSE log message and log the exception.

Link copied to clipboard
fun w(tag: String, message: String, throwable: Throwable? = null)

Send a Level.WARNING log message and log the exception.